package old.ooday09;

public class StringDemo {
    public static void main(String[] args) {
        String s1="hello";
        String s2="hello";
        String s3="hello";
        System.out.println(s1==s2);
        System.out.println(s1==s3);
        System.out.println(s2==s3);
        s1=s1+"!";
        System.out.println(s1==s2);
        String s4="he"+"llo";
        System.out.println(s4==s2);
        String s5="he";
        String s6=s5+"llo";
        System.out.println(s6==s2);
    }
}

